package com.qfedu.service;

import com.qfedu.entity.Consumer;
import com.qfedu.entity.ResponseData;

import java.util.List;

public interface ConsumerService {

    /**
     * 登录
     * @param consumer 封装的用户名及密码
     * @return
     */
    ResponseData<List<Consumer>> loginIn(Consumer consumer);

    /**
     * 注册
     * @param consumer
     * @return
     */
    ResponseData<String> SignUp(Consumer consumer);

    /**
     * 更新用户信息
     * @param consumer
     * @return
     */
    ResponseData<String> updateUserMsg(Consumer consumer);

    /**
     * 返回指定ID的用户
     * @param id
     * @return
     */
    List<Consumer> getUserOfId(int id);

    ResponseData<String> updateAvator(int id, String avator);

    List<Consumer> selectcha();

    boolean deleteshan(int id);


}
